<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻类别管理</title>

</head>

<body>
	<?php
	class Get_newsort extends Controller{
		function get_newsort(){
			parent::Controller();
			$this->load->database();
			$this->load->helper('url');
		}
		function index(){
			$this->load->model('newsortmodel');
			$data=$this->newsortmodel->get_newsort();
			//print_r($data);exit;
			$getchild=$this->newsortmodel->getChildren($data,0,0);
			//print_r($getchild);exit;
			$data['child']=$getchild;
			$this->load->view('newsort',$data);
		}
	}
	?>
</body>
</html>